package com.jchen.system.service;

import com.github.pagehelper.PageInfo;
import com.jchen.common.entity.UserInfo;
import com.jchen.common.util.R;
import com.jchen.elasticsearch.dto.SysUserEsQueryDto;

import java.io.IOException;

/**
 * @Description
 * @Author jchen
 * @Date 2023/12/7 14:22
 */
public interface IUserInfoService {
    UserInfo getByUsername(String name);

    String saveUserInfo(UserInfo userInfo);

    PageInfo<UserInfo> selectListPage(int pageNum, int pageSize, UserInfo userInfo);

    UserInfo getByUserId(int userId);

    R listPageByEs(int pageNum, int pageSize, SysUserEsQueryDto dto) throws IOException;
}
